/**
 * 
 */
package test;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * POJO defining a company info
 * 
 * @author Sinisa
 * 
 */
@Entity
@Table(name="COMPANY_INFO")
public class CompanyInfo implements Serializable {

        private static final long serialVersionUID = 2635889808001215323L;
        private Long id;
        private String url;
        private String fnOrgUrl;
        private String streetAddress;
        private String locality;
        private String latitude;
        private String longitude;
        private String tel;
        private String classification;
        private String orderRightCorner;
        private String serviceLinks;

        /**
         * @return the id
         */
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        public Long getId() {
                return id;
        }

        /**
         * @param id
         *                the id to set
         */
        public void setId(Long id) {
                this.id = id;
        }

        /**
         * @return the url
         */
        public String getUrl() {
                return url;
        }

        /**
         * @param url
         *                the url to set
         */
        public void setUrl(String url) {
                this.url = url;
        }

        /**
         * @return the fnOrgUrl
         */
        public String getFnOrgUrl() {
                return fnOrgUrl;
        }

        /**
         * @param fnOrgUrl
         *                the fnOrgUrl to set
         */
        public void setFnOrgUrl(String fnOrgUrl) {
                this.fnOrgUrl = fnOrgUrl;
        }

        /**
         * @return the streetAddress
         */
        public String getStreetAddress() {
                return streetAddress;
        }

        /**
         * @param streetAddress
         *                the streetAddress to set
         */
        public void setStreetAddress(String streetAddress) {
                this.streetAddress = streetAddress;
        }

        /**
         * @return the locality
         */
        public String getLocality() {
                return locality;
        }

        /**
         * @param locality
         *                the locality to set
         */
        public void setLocality(String locality) {
                this.locality = locality;
        }

        /**
         * @return the latitude
         */
        public String getLatitude() {
                return latitude;
        }

        /**
         * @param latitude
         *                the latitude to set
         */
        public void setLatitude(String latitude) {
                this.latitude = latitude;
        }

        /**
         * @return the longitude
         */
        public String getLongitude() {
                return longitude;
        }

        /**
         * @param longitude
         *                the longitude to set
         */
        public void setLongitude(String longitude) {
                this.longitude = longitude;
        }

        /**
         * @return the tel
         */
        public String getTel() {
                return tel;
        }

        /**
         * @param tel
         *                the tel to set
         */
        public void setTel(String tel) {
                this.tel = tel;
        }

        /**
         * @return the classification
         */
        public String getClassification() {
                return classification;
        }

        /**
         * @param classification
         *                the classification to set
         */
        public void setClassification(String classification) {
                this.classification = classification;
        }

        /**
         * @return the orderRightCorner
         */
        public String getOrderRightCorner() {
                return orderRightCorner;
        }

        /**
         * @param orderRightCorner
         *                the orderRightCorner to set
         */
        public void setOrderRightCorner(String orderRightCorner) {
                this.orderRightCorner = orderRightCorner;
        }

        /**
         * @return the serviceLinks
         */
        public String getServiceLinks() {
                return serviceLinks;
        }

        /**
         * @param serviceLinks
         *                the serviceLinks to set
         */
        public void setServiceLinks(String serviceLinks) {
                this.serviceLinks = serviceLinks;
        }

        /* (non-Javadoc)
         * @see java.lang.Object#hashCode()
         */
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((classification == null) ? 0 : classification.hashCode());
                result = prime * result + ((fnOrgUrl == null) ? 0 : fnOrgUrl.hashCode());
                result = prime * result + ((id == null) ? 0 : id.hashCode());
                result = prime * result + ((latitude == null) ? 0 : latitude.hashCode());
                result = prime * result + ((locality == null) ? 0 : locality.hashCode());
                result = prime * result + ((longitude == null) ? 0 : longitude.hashCode());
                result = prime * result + ((orderRightCorner == null) ? 0 : orderRightCorner.hashCode());
                result = prime * result + ((serviceLinks == null) ? 0 : serviceLinks.hashCode());
                result = prime * result + ((streetAddress == null) ? 0 : streetAddress.hashCode());
                result = prime * result + ((tel == null) ? 0 : tel.hashCode());
                result = prime * result + ((url == null) ? 0 : url.hashCode());
                return result;
        }

        /* (non-Javadoc)
         * @see java.lang.Object#equals(java.lang.Object)
         */
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                CompanyInfo other = (CompanyInfo) obj;
                if (classification == null) {
                        if (other.classification != null)
                                return false;
                } else if (!classification.equals(other.classification))
                        return false;
                if (fnOrgUrl == null) {
                        if (other.fnOrgUrl != null)
                                return false;
                } else if (!fnOrgUrl.equals(other.fnOrgUrl))
                        return false;
                if (id == null) {
                        if (other.id != null)
                                return false;
                } else if (!id.equals(other.id))
                        return false;
                if (latitude == null) {
                        if (other.latitude != null)
                                return false;
                } else if (!latitude.equals(other.latitude))
                        return false;
                if (locality == null) {
                        if (other.locality != null)
                                return false;
                } else if (!locality.equals(other.locality))
                        return false;
                if (longitude == null) {
                        if (other.longitude != null)
                                return false;
                } else if (!longitude.equals(other.longitude))
                        return false;
                if (orderRightCorner == null) {
                        if (other.orderRightCorner != null)
                                return false;
                } else if (!orderRightCorner.equals(other.orderRightCorner))
                        return false;
                if (serviceLinks == null) {
                        if (other.serviceLinks != null)
                                return false;
                } else if (!serviceLinks.equals(other.serviceLinks))
                        return false;
                if (streetAddress == null) {
                        if (other.streetAddress != null)
                                return false;
                } else if (!streetAddress.equals(other.streetAddress))
                        return false;
                if (tel == null) {
                        if (other.tel != null)
                                return false;
                } else if (!tel.equals(other.tel))
                        return false;
                if (url == null) {
                        if (other.url != null)
                                return false;
                } else if (!url.equals(other.url))
                        return false;
                return true;
        }

        /* (non-Javadoc)
         * @see java.lang.Object#toString()
         */
        @Override
        public String toString() {
                return "CompanyInfo [id=" + id + ", url=" + url + ", fnOrgUrl=" + fnOrgUrl + ", streetAddress="
                                + streetAddress + ", locality=" + locality + ", latitude=" + latitude + ", longitude="
                                + longitude + ", tel=" + tel + ", classification=" + classification
                                + ", orderRightCorner=" + orderRightCorner + ", serviceLinks=" + serviceLinks + "]";
        }
        
}
